/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.garagesale.web.util;

/**
 *
 * @author christophe
 */
public enum WebAction
{
    CREATE,
    VIEW,
    EDIT,
    DELETE;

    public boolean isAction(String action)
    {
        if (null == action)
        {
            return false;
        }
        else
        {
            return this.name().equalsIgnoreCase(action);
        }
    }

}
